package oop第一章作业;

public class Calculator {

    public  int number1;
    public  int number2;
    public  void add(){

        System.out.println("两数相加");
        System.out.println(number1+number2);
    }
    public void sub(){
        System.out.println("两数相减");
        System.out.println(number1 -number1);
    }
    public  void  mul(){
        System.out.println("两数相乘");
        System.out.println( number1*number2);
    }
    public  void div(){
        System.out.println("两数相除");
        System.out.println(number1/number1);
    }
}
